//
//  UIImageView+SetCacheImage.h
//  nbappdev
//
//  Created by Jingjing Huang on 20/01/17.
//  Copyright © 2017 boleguigu_dev1. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIImageView+WebCache.h"
#import "BaseConfig.h"

typedef void (^SetCacheImageCompleted)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);

@interface UIImageView (SetCacheImage)

-(void)setCacheImage:(NSString *)imagePath;
-(void)setCacheImage:(NSString *)imagePath placeholderImage:(NSString *)placeholderImage;
-(void)setCacheImage:(NSString *)imagePath completed:(SetCacheImageCompleted)completed;
-(void)setCacheImage:(NSString *)imagePath placeholderImage:(NSString *)placeholderImage completed:(SetCacheImageCompleted)completed;

@end
